import React, { Component, useCallback, useMemo, useState } from 'react';
import { Steps, Popover, Form, Button, message, Input } from 'antd';
import Bbb from './bbb';

export default function Aaa() {
  const onFinish = (values) => {
    // console.log('Success:', values);
  };

  const onFinishFailed = (errorInfo) => {
    // console.log('Failed:', errorInfo);
  };
  const validatorMax = (rule, value, callback) => {
    console.log(value);
    callback('89');
  };
  return (
    <div>
      <Form
        name="basic"
        labelCol={{
          span: 8,
        }}
        wrapperCol={{
          span: 16,
        }}
        initialValues={{
          remember: true,
        }}
        onFinish={onFinish}
        onFinishFailed={onFinishFailed}
        autoComplete="off"
      >
<Form.Item
  rules={[
    {
      validator: validatorMax,
    },
  ]}
>
  <Input />
</Form.Item>
      </Form>
    </div>
  );
}
